<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" th:fragment="userlist (users)">

<ul class="user-list" th:each="user:${users}">

    <li>
        <a th:text="${user.username}" th:href="@{/{username} (username=${user.username})}">
            {{ user.username }}
        </a>
    </li>

</ul>
</html>